<template>
  <div class="api-access-process">
    <el-row>
      <el-col :span="24">
        <div class="title">
          <span class="title-line"></span>
          <span class="title-name">API Access Process</span>
          <span class="title-line"></span>
        </div>
      </el-col>
      <el-col :span="24">
        <div class="content">
          <div class="step">
            <div class="desc">
              <img src="./images/number1.png" alt="">
              <div class="desc-content">
                <span class="desc-title">进入 My Secret Key 页面</span>
                <span class="desc-text">进入 My Secret Key 页面，如图所示：</span>
              </div>
            </div>
            <div class="img">
              <img src="./images/MySecretKey.png" alt="">
            </div>
          </div>
          <div class="step">
            <div class="desc">
              <img src="./images/number2.png" alt="">
              <div class="desc-content">
                <span class="desc-title">创建 Secret Key</span>
                <span class="desc-text">请点击Create Secret Key，创建 Secret Key 作为调用API的凭证</span>
              </div>
            </div>
            <div class="img">
              <img src="./images/SecretKey.png" alt="">
            </div>
          </div>
          <div class="step">
            <div class="desc">
              <img src="./images/number3.png" alt="">
              <div class="desc-content">
                <span class="desc-title">接入API</span>
                <span class="desc-text">请根据 API Documentation 接入API</span>
              </div>
            </div>
            <div class="img">
              <img src="./images/enterAPI.png" alt="">
            </div>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    data() {
      return {}
    }
  }
</script>

<style lang="scss" scoped>
  .api-access-process {
    padding: 0 50px;
    background: #f6f7fb;
  }

  .title {
    margin: 20px 0;
    text-align: center;
    .title-line {
      display: inline-block;
      margin: 0 10px;
      width: 50px;
      height: 4px;
      background: #0090e9;
    }
    .title-name {
      font-weight: bold;
      font-size: 30px;
      color: #000;
      vertical-align: middle;
    }
  }

  .content {
    background: #fff;
    box-shadow: 0 2px 10px 0 rgba(226, 224, 234, .6);
    border-radius: 6px;
  }

  .step {
    padding: 30px 30px;
    overflow: hidden;
    .desc, .img {
      display: inline-block;
    }
    .desc {
      width: 30%;
      margin-top: 65px;
      img {
        display: inline-block;
        width: 42px;
        height: 70px;
        float: left;
      }
      .desc-content {
        width: calc(100% - 42px);
        padding: 0 0 0 10px;
        float: left;
        .desc-title {
          display: block;
          font-size: 18px;
          font-weight: bold;
          color: #666;
        }
        .desc-text {
          display: inline-block;
          font-size: 12px;
          margin-top: 10px;
          line-height: 20px;
          color: #666;
        }
      }

    }
    .img {
      width: 66%;
      float: right;
      vertical-align: middle;
      img {
        height: 200px;
        width: 100%;
      }
    }
  }
</style>
